<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
  <meta charset="UTF-8">
  <title>Button - States</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <link href="../../../../../css/core.css" rel="stylesheet">
  <link href="../../../../../scripts/testing/styles.css" rel="stylesheet">
  <script src="../../../../../scripts/testing/scripts.js"></script>
  <script nomodule src="../../../../../dist/ionic/ionic.js"></script>
  <script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script></head>

<body>
  <ion-app>
    <ion-content>
      <h3>Default</h3>
      <p>
        <ion-button>Default</ion-button>
        <ion-button><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button shape="round">Round</ion-button>
        <ion-button fill="outline">Outline</ion-button>
        <ion-button fill="clear">Clear</ion-button>
        <ion-button color="secondary">Default</ion-button>
        <ion-button color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button color="danger" shape="round" fill="outline">Round</ion-button>
        <ion-button color="warning" fill="outline">Outline</ion-button>
        <ion-button color="dark" fill="clear">Clear</ion-button>
      </p>

      <h3>Focused</h3>
      <p>
        <ion-button class="ion-focused">Default</ion-button>
        <ion-button class="ion-focused"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button class="ion-focused" shape="round">Round</ion-button>
        <ion-button class="ion-focused" fill="outline">Outline</ion-button>
        <ion-button class="ion-focused" fill="clear">Clear</ion-button>
        <ion-button class="ion-focused" color="secondary">Default</ion-button>
        <ion-button class="ion-focused" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button class="ion-focused" color="danger" shape="round" fill="outline">Round</ion-button>
        <ion-button class="ion-focused" color="warning" fill="outline">Outline</ion-button>
        <ion-button class="ion-focused" color="dark" fill="clear">Clear</ion-button>
      </p>

      <h3>Activated</h3>
      <p>
        <ion-button class="ion-activated">Default</ion-button>
        <ion-button class="ion-activated"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button class="ion-activated" shape="round">Round</ion-button>
        <ion-button class="ion-activated" fill="outline">Outline</ion-button>
        <ion-button class="ion-activated" fill="clear">Clear</ion-button>
        <ion-button class="ion-activated" color="secondary">Default</ion-button>
        <ion-button class="ion-activated" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button class="ion-activated" color="danger" shape="round" fill="outline">Round</ion-button>
        <ion-button class="ion-activated" color="warning" fill="outline">Outline</ion-button>
        <ion-button class="ion-activated" color="dark" fill="clear">Clear</ion-button>
      </p>

      <h3>Custom</h3>
      <p>
        <ion-button class="custom">Default</ion-button>
        <ion-button class="custom"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button class="custom" shape="round">Round</ion-button>
        <ion-button class="custom" fill="outline">Outline</ion-button>
        <ion-button class="custom" fill="clear">Clear</ion-button>
        <ion-button class="custom" color="secondary">Default</ion-button>
        <ion-button class="custom" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button class="custom" color="danger" shape="round" fill="outline">Round</ion-button>
        <ion-button class="custom" color="warning" fill="outline">Outline</ion-button>
        <ion-button class="custom" color="dark" fill="clear">Clear</ion-button>
        <ion-button class="custom ion-focused">Default</ion-button>
        <ion-button class="custom ion-focused"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button class="custom ion-focused" shape="round">Round</ion-button>
        <ion-button class="custom ion-focused" fill="outline">Outline</ion-button>
        <ion-button class="custom ion-focused" fill="clear">Clear</ion-button>
        <ion-button class="custom ion-focused" color="secondary">Default</ion-button>
        <ion-button class="custom ion-focused" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button class="custom ion-focused" color="danger" shape="round" fill="outline">Round</ion-button>
        <ion-button class="custom ion-focused" color="warning" fill="outline">Outline</ion-button>
        <ion-button class="custom ion-focused" color="dark" fill="clear">Clear</ion-button>
        <ion-button class="custom ion-activated">Default</ion-button>
        <ion-button class="custom ion-activated"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button class="custom ion-activated" shape="round">Round</ion-button>
        <ion-button class="custom ion-activated" fill="outline">Outline</ion-button>
        <ion-button class="custom ion-activated" fill="clear">Clear</ion-button>
        <ion-button class="custom ion-activated" color="secondary">Default</ion-button>
        <ion-button class="custom ion-activated" color="tertiary"><ion-icon slot="icon-only" name="star"></ion-icon></ion-button>
        <ion-button class="custom ion-activated" color="danger" shape="round" fill="outline">Round</ion-button>
        <ion-button class="custom ion-activated" color="warning" fill="outline">Outline</ion-button>
        <ion-button class="custom ion-activated" color="dark" fill="clear">Clear</ion-button>
      </p>
    </ion-content>
  </ion-app>


  <style>
    .custom {
      --background-hover: red;
      --background-hover-opacity: 1;

      --background-focused: green;
      --background-activated: blue;
    }

    .custom:hover {
      opacity: 1;
    }

    /* TODO should this inherit or users set all */
    .custom {
      --color: red;
    }
  </style>
</body>
</html>
